@foreach($headers as $filed => $item)
    @if($filed == 'type')
        <td>数值</td>
    @elseif($filed == 'profit_rate')
        <td>{{ getPercentage($total['profit_rmb'],$total['sales_amount_rmb']) }}</td>
    @elseif($filed == 'avg_price')
        <td>{{ intval($total['sales_volume']) > 0 ? round(($total['sales_amount_rmb']) / intval($total['sales_volume']),3) : '--' }}</td>
    @elseif($item['sumField'])
        <td>{{ array_key_exists($filed,$total) ? $total[$filed] : '' }}</td>
    @else
        <td></td>
    @endif
@endforeach
